home *** CD-ROM | disk | FTP | other *** search
- Path: doc.ic.ac.uk!not-for-mail
- From: mdf@doc.ic.ac.uk (Martin Frost)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: MsgPorts and lists
- Date: 16 Feb 1996 16:51:06 -0000
- Organization: Dept. of Computing, Imperial College, University of London, UK.
- Distribution: world
- Message-ID: <4g2clq$1n1@oak73.doc.ic.ac.uk>
- References: <1527.6618T48T2102@amiga.pp.se> <31227335.0@eden.adam.com.au>
- Reply-To: mdf@doc.ic.ac.uk (Martin Frost)
- NNTP-Posting-Host: oak73.doc.ic.ac.uk
- X-Newsreader: mxrn 6.18-23
-
-
- In article <31227335.0@eden.adam.com.au>, yeti@adam.com.au (jonathan potter) writes:
- >You can do what you like with your message list, but if you are adding or
- >removing to it other than through GetMsg() and PutMsg(), you must call
- >Forbid() first.
- ^^^^^^^^
-
- It needs to be Disable(), since PutMsg is sometimes called from interrupts
- (certainly for IORequests; I dunno about Intuition)
-
- >If you must add a message to the head of a queue, call
- >Forbid() and then AddHead().
- ^^^^^^^^
-
- This also needs to be Disable()
-
- Martin
-